package modelimplementation

import "salary/model"

/*
 * 银行卡支付方式实现类
 */

type DirectMethod struct {
	// 银行卡
	bank    	string
	// 应支付的工资
	account 	string
}

func NewDirectMethod(bank, account string) *DirectMethod {
	return &DirectMethod{bank: bank, account: account}
}

func (dm *DirectMethod) GetBank() string {
	return dm.bank
}

func (dm *DirectMethod) GetAccount() string {
	return dm.account
}

func (dm *DirectMethod) Pay(pc model.PayCheck) {
	pc.SetFiled("Disposition", "Direct")
}


